﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Fady_HanyDbDataSet" targetNamespace="http://tempuri.org/Fady_HanyDbDataSet.xsd" xmlns:mstns="http://tempuri.org/Fady_HanyDbDataSet.xsd" xmlns="http://tempuri.org/Fady_HanyDbDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="Fady_HanyDbConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="Fady_HanyDbConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.Fady_HanyDbConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="OrderItemTableAdapter" GeneratorDataComponentClassName="OrderItemTableAdapter" Name="OrderItem" UserDataComponentName="OrderItemTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="Fady_HanyDbConnectionString (Web.config)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        OrderItems.ItemCount, OrderItems.UnitPrice, OrderItems.ItemCount * OrderItems.UnitPrice AS Total, Items.Name
FROM            OrderItems INNER JOIN
                         StockItems ON OrderItems.StockItemID = StockItems.ID INNER JOIN
                         Items ON StockItems.ItemID = Items.ID
WHERE        (OrderItems.OrderID = @OrderID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="OrderID" ColumnName="OrderID" DataSourceName="Fady_HanyDb.dbo.OrderItems" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@OrderID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="OrderID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ItemCount" DataSetColumn="ItemCount" />
              <Mapping SourceColumn="UnitPrice" DataSetColumn="UnitPrice" />
              <Mapping SourceColumn="Total" DataSetColumn="Total" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Fady_HanyDbDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="Fady_HanyDbDataSet" msprop:Generator_UserDSName="Fady_HanyDbDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="OrderItem" msprop:Generator_TableClassName="OrderItemDataTable" msprop:Generator_TableVarName="tableOrderItem" msprop:Generator_TablePropName="OrderItem" msprop:Generator_RowDeletingName="OrderItemRowDeleting" msprop:Generator_UserTableName="OrderItem" msprop:Generator_RowChangingName="OrderItemRowChanging" msprop:Generator_RowEvHandlerName="OrderItemRowChangeEventHandler" msprop:Generator_RowDeletedName="OrderItemRowDeleted" msprop:Generator_RowEvArgName="OrderItemRowChangeEvent" msprop:Generator_RowChangedName="OrderItemRowChanged" msprop:Generator_RowClassName="OrderItemRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ItemCount" msprop:Generator_ColumnVarNameInTable="columnItemCount" msprop:Generator_ColumnPropNameInRow="ItemCount" msprop:Generator_ColumnPropNameInTable="ItemCountColumn" msprop:Generator_UserColumnName="ItemCount" type="xs:int" minOccurs="0" />
              <xs:element name="UnitPrice" msprop:Generator_ColumnVarNameInTable="columnUnitPrice" msprop:Generator_ColumnPropNameInRow="UnitPrice" msprop:Generator_ColumnPropNameInTable="UnitPriceColumn" msprop:Generator_UserColumnName="UnitPrice" type="xs:decimal" minOccurs="0" />
              <xs:element name="Total" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotal" msprop:Generator_ColumnPropNameInRow="Total" msprop:Generator_ColumnPropNameInTable="TotalColumn" msprop:Generator_UserColumnName="Total" type="xs:decimal" minOccurs="0" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>